package com.xbs.service.user;

import java.sql.Date;
import java.util.List;

import com.xbs.dao.conn.ParamSet;
import com.xbs.dao.user.MyCenterDao;
import com.xbs.entity.MyCenterEntity;

/**
 * 个人中心订单业务处理类
 * @author Administrator
 *
 */
public class MyCenterService {

	private MyCenterDao mycenterDao;
	
	public MyCenterService(){
		mycenterDao = new MyCenterDao();
	}
	
	/**
	 * 
	 * 1. 查询订单信息
	 * @return
	 */
	public List<MyCenterEntity> getDuan(String name, String ststus, Date date1, Date date2){
		
		return mycenterDao.getDuan(name, ststus, date1, date2);
	}
	
	/**
	 * 
	 * 2. 查询订单信息
	 * @return
	 */
	public List<MyCenterEntity> getShun(String name, String ststus, Date date1, Date date2){
		
		return mycenterDao.getShun(name, ststus, date1, date2);
	}
	
	/**
	 * 3. 根据订单号修改订单信息
	 * @return
	 */
	public int update(double money, String status, String coid){
		return mycenterDao.update(money, status, coid);
	}
}
